import request from '@/utils/request'

// 文章图片
export function uploadImage(data) {
  return request({
    url: '/api/upload/image',
    method: 'POST',
    headers: {'Content-Type': 'multipart/form-data'},
    data
  })
}

// 文章视频
export function uploadVideo(data) {
  return request({
    url: '/api/upload/video',
    method: 'POST',
    headers: {'Content-Type': 'multipart/form-data'},
    data
  })
}